package com.ship.contract.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.contract.bean.ConResourceMain;
import com.ship.contract.bean.ConShippingAgency;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ConShippingAgencyMapper extends BaseMapper<ConShippingAgency> {

    /**
     * 根据id查询所有信息
     */
    @Select("SELECT * FROM con_shipping_agency WHERE id = #{id}")
    ConResourceMain getById(@Param("id") Long id);

    /**
     * 获取所有合同编号
     * @return
     */
    @Select("SELECT contract_number FROM con_shipping_agency")
    List<String> getAllContractNumbers();
}
